extern int   kill __ARGS((int, int));
extern int   killpg __ARGS((int, int));

extern int   access __ARGS((char *, int));
extern int   fsync __ARGS((int));
extern int   fchown __ARGS((int, int, int));
#if defined(HAVE_GETCWD) && !defined(sun)
extern char *getcwd __ARGS((char *, int));
#else
extern char *getwd __ARGS((char *));
#endif
extern int   ioctl __ARGS((int, int, ...));
extern int   chmod __ARGS((const char *, mode_t));
extern int   remove __ARGS((const char *));
extern int   rename __ARGS((const char *, const char *));
extern int   free __ARGS((char *));
extern char *malloc __ARGS((unsigned int));
extern char *realloc __ARGS((char *, int));
extern char *getenv __ARGS((char *));
extern int	 setenv __ARGS((char *, char *, int));
extern int   putenv __ARGS((char *));

extern int   gethostname __ARGS((char *, int));
extern void  perror __ARGS((char *));

extern int   sleep __ARGS((int));
extern unsigned int	alarm __ARGS((unsigned int));
extern int   chdir __ARGS((char *));
extern int   fchdir __ARGS((int));
extern int   stat __ARGS((char *, struct stat *));
extern int   fstat __ARGS((int, struct stat *));
extern int   open __ARGS((char *, int, ...));
extern int   close __ARGS((int));
extern int   read __ARGS((int, char *, size_t));
extern int   write __ARGS((int, char *, size_t));
extern int	 pipe __ARGS((int *));
extern long  lseek __ARGS((int, long, int));
extern void  sync __ARGS((void));
extern uid_t getuid __ARGS((void));
extern gid_t getgid __ARGS((void));
extern int   creat __ARGS((char *, int));
extern int	 qsort __ARGS((void *, size_t, size_t, int (*)(void *, void *)));

extern int   isatty __ARGS((int));
extern int   getpid __ARGS((void));
extern int   dup __ARGS((int));
extern int   unlink __ARGS((const char *));
extern int   link __ARGS((const char *, const char *));

extern int	tgetent __ARGS((char *, char *));
extern int	tgetnum __ARGS((char *));
extern int	tgetflag __ARGS((char *));
extern char	*tgoto __ARGS((char *, int, int));
extern int	tputs __ARGS((char *, int, int (*)(int)));

#ifdef HAVE_TERMIOS_H
struct termios;			/* for tcgetattr __ARGS */
extern int tcgetattr __ARGS((int, struct termios *));
extern int tcsetattr __ARGS((int, int, const struct termios *));
#endif

#ifdef HAVE_SYS_STATFS_H
struct statfs;			/* for fstatfs __ARGS */
extern int  fstatfs __ARGS((int, struct statfs *, int, int));
#endif

#ifdef HAVE_GETTIMEOFDAY
struct timeval;			/* for gettimeofday __ARGS */
struct timezone;		/* for gettimeofday __ARGS */
extern int gettimeofday __ARGS((struct timeval *tp, struct timezone *tzp));
#endif

#ifdef HAVE_GETPWNAM
struct passwd;			/* for getpwnam __ARGS */
extern struct passwd *getpwnam __ARGS((const char *));
#endif
